package com.platform.web.controller;

import com.platform.common.bean.User;
import com.platform.core.service.QueryUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class DemoController {
    @Autowired
    private QueryUserInfoService userInfoService;

    @GetMapping("username")
    public String getUserName() {
        return userInfoService.queryUserInfo(1001);
    }

    @GetMapping("test")
    public String test() {
        return "sucess";
    }
}
